﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Media;

using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.Plugins;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;

namespace XSOL
{
    class WaterWalking : HBPlugin
    {
        public override string Name { get { return "Water Walking"; } }
        public override string Author { get { return "xsol"; } }
        public override Version Version { get { return new Version(1, 0, 0, 0); } }

        public override bool WantButton { get { return true; } }

        private static LocalPlayer me = StyxWoW.Me;


        public override void Pulse()
        {
            if (!StyxWoW.IsInGame)
            {
                return;
            }

            if (!me.Combat)
            {
                if ((!me.Buffs.ContainsKey("Water Walking")) && (!StyxWoW.Me.HasAura("Water Walking")))
                {
                    SpellManager.Cast("Water Walking");
                }
            }
        }
        public override void Dispose()
        {
            base.Dispose();
        }
    }
}
